package vn.smartoffice.promail.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import vn.smartoffice.promail.entity.MailAccount;
import vn.smartoffice.promail.mapper.MailAccountMapper;
import vn.smartoffice.promail.services.BaseService;
import vn.smartoffice.promail.services.MailAccountService;

@Service("mailAccountService")
@Transactional
public class MailAccountServiceImpl extends BaseService<MailAccount, MailAccountMapper> implements MailAccountService {

	@Autowired
	public MailAccountServiceImpl(MailAccountMapper mapper) {
		super(mapper);
	}

	@Override
	public List<MailAccount> findByUserId(long userId) {
		return mapper.findByUserId(userId);
	}

}
